00db11775780414175a02dd534f4725121e6ef77,xwiki-platform-core/xwiki-platform-ircbot/xwiki-platform-ircbot-api/src/main/java/org/xwiki/ircbot/internal/DocumentModifiedEventListener.java,DocumentModifiedEventListener,onEvent,#Event#Object#Object#,115
Before Change
getNotificationAuthor(event, document),
getNotificationComment(event, document),
getNotificationURL(event, document));
this.bot.sendMessage(this.bot.getChannelsNames().iterator().next(), message);
}
} catch (IRCBotException e) {
// Failed to handle the event, log an error
After Change
// Get the channel to which to send to. If there's no channel name it means the Bot hasn't joined
// any channel yet so don't do anything!
Iterator<String> channelNameItator = this.bot.getChannelsNames().iterator();
if (channelNameItator.hasNext()) {
this.bot.sendMessage(channelNameItator.next(), message);
}
}
} catch (IRCBotException e) {